function foo(x: number, y: number = 30) {

}

foo(20, undefined)
foo(30)

function foo2(x: number = 20, y: number) {

}
foo2(undefined, 20)

export { }